{extends file="./main.tpl"}
{block name=head}
{/block}
{block name=body}
<center>
  <form name="tranFrm" method="post" action="transaction.php">
    <table border="1">
      <tr>
        <td>Transaction In</td>
        <td><input type="text" name="transaction"></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="submit" name="tranSub" value="Submit"></td>
      </tr>
    </table>
  </form>
  <br/><br/><br/><br/><br/>
  <table border="1">
    <tr>
      <th>Tarnction Id</th>
      <th>Trancion In</th>
      <th>Delete</th>
    </tr>
    {section name="ind" loop=$tranctionInArray}
      <tr>
        <td>{$tranctionInArray[ind].transactionId}</td>
        <td>{$tranctionInArray[ind].transactionName}</td>
        <td><a href="deleteTrasanction.php?transactionId={$tranctionInArray[ind].transactionId}" onclick="return confirm('are sure you want to delete it');">Delete</a></td>
      </tr>
    {/section}
  </table>
</center>
{/block}